package com.haiou.controller.login;

import com.haiou.model.ResultModel;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wang fei
 * @date 2020-10-15 13:45
 */
@Slf4j
@RestController
public class LoginController {

    @PostMapping("/login")
    public ResultModel getTst(@RequestBody String  loginName){
        log.info(loginName);
        return ResultModel.success();
    }
}
